<?php
$query = mysql_connect("localhost", "root", "");
if (!$query)
  {
  die('Could not connect: ' . mysql_error());
  }
?>